<div class="requirements view">
<h2><?php  __('Requirement "'.$requirement['Requirement']['r_reference'].'"');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Index'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $requirement['Requirement']['r_index']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Référence'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $requirement['Requirement']['r_reference']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Titre'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $requirement['Requirement']['r_title']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Description'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $requirement['Requirement']['r_description']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Categorie'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($requirement['Category']['cat_description'], array('controller'=> 'categories', 'action'=>'view', $requirement['Category']['cat_index'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Applicabilité'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($requirement['Applicability']['app_description'], array('controller'=> 'applicabilities', 'action'=>'view', $requirement['Applicability']['app_index'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Conformité'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($requirement['Conformance']['conf_description'], array('controller'=> 'conformances', 'action'=>'view', $requirement['Conformance']['conf_index'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Notes'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $requirement['Requirement']['r_notes']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Statut'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $requirement['Requirement']['r_status']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Projet'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($requirement['Project']['proj_name'], array('controller'=> 'projects', 'action'=>'view', $requirement['Project']['proj_index'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Modifier Requirement', true), array('action'=>'edit', $requirement['Requirement']['r_index'])); ?> </li>
		<li><?php echo $html->link(__('Supprimer Requirement', true), array('action'=>'delete', $requirement['Requirement']['r_index']), null, sprintf(__('Are you sure you want to delete # %s?', true), $requirement['Requirement']['r_index'])); ?> </li>
		<li><?php echo $html->link(__('Lister Requirement', true), array('action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('Nouveau Requirement', true), array('action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('Lister Projects', true), array('controller'=> 'projects', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('Nouveau Project', true), array('controller'=> 'projects', 'action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('Lister Categories', true), array('controller'=> 'categories', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('Nouveau Category', true), array('controller'=> 'categories', 'action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('Lister Applicabilities', true), array('controller'=> 'applicabilities', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('Nouveau Applicability', true), array('controller'=> 'applicabilities', 'action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('Lister Conformances', true), array('controller'=> 'conformances', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('Nouveau Conformance', true), array('controller'=> 'conformances', 'action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('Lister liens Procédure-Requirement', true), array('controller'=> 'procedure_requirements', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('Nouveau lien Procédure-Requirement', true), array('controller'=> 'procedure_requirements', 'action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('Lister liens Step-Requirement', true), array('controller'=> 'step_requirements', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('Nouveau lien Step-Requirement', true), array('controller'=> 'step_requirements', 'action'=>'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Procedure(s) Relative(s)');?></h3>
	<?php if (!empty($requirement['ProcedureRequirement'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Pra Index'); ?></th>
		<th><?php __('Pra Proc'); ?></th>
		<th><?php __('Pra Requirement'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($requirement['ProcedureRequirement'] as $procedureRequirement):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $procedureRequirement['pra_index'];?></td>
			<td><?php echo $procedureRequirement['pra_proc'];?></td>
			<td><?php echo $procedureRequirement['pra_requirement'];?></td>
			<td class="actions">
				<?php echo $html->link('<img src="/ReqTrack/img/Voir.png" alt="Voir" title="Voir">', array('controller'=> 'procedure_requirements', 'action'=>'view', $procedureRequirement['pra_index']), null, null, false); ?>
				<?php echo $html->link('<img src="/ReqTrack/img/Modifier.png" alt="Modifier" title="Modifier">', array('controller'=> 'procedure_requirements', 'action'=>'edit', $procedureRequirement['pra_index']), null, null, false); ?>
				<?php echo $html->link('<img src="/ReqTrack/img/Supprimer.png" alt="Supprimer" title="Supprimer">', array('controller'=> 'procedure_requirements', 'action'=>'delete', $procedureRequirement['pra_index']), null, sprintf(__('Are you sure you want to delete # %s?', true), $procedureRequirement['pra_index']), null, null, false); ?>
			</td>
		</tr>
	<?php endforeach; ?>	
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('Nouveau lien Procédure-Requirement', true), array('controller'=> 'procedure_requirements', 'action'=>'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Step(s) Relatif(s)');?></h3>
	<?php if (!empty($requirement['StepRequirement'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Sra Index'); ?></th>
		<th><?php __('Sra Step'); ?></th>
		<th><?php __('Sra Req'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($requirement['StepRequirement'] as $stepRequirement):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $stepRequirement['sra_index'];?></td>
			<td><?php echo $stepRequirement['sra_step'];?></td>
			<td><?php echo $stepRequirement['sra_req'];?></td>
			<td class="actions">
				<?php echo $html->link('<img src="/ReqTrack/img/Voir.png" alt="Voir" title="Voir">', array('controller'=> 'step_requirements', 'action'=>'view', $stepRequirement['sra_index'])); ?>
				<?php echo $html->link('<img src="/ReqTrack/img/Modifier.png" alt="Modifier" title="Modifier">', array('controller'=> 'step_requirements', 'action'=>'edit', $stepRequirement['sra_index'])); ?>
				<?php echo $html->link('<img src="/ReqTrack/img/Supprimer.png" alt="Supprimer" title="Supprimer">', array('controller'=> 'step_requirements', 'action'=>'delete', $stepRequirement['sra_index']), null, sprintf(__('Are you sure you want to delete # %s?', true), $stepRequirement['sra_index'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('Nouveau lien Step-Requirement', true), array('controller'=> 'step_requirements', 'action'=>'add'));?> </li>
		</ul>
	</div>
</div>